#!/bin/env python
#encoding:utf8

from acora import AcoraBuilder
t1='海上'.decode('utf-8')
builder = AcoraBuilder(t1,u'上海', u'上上')
builder.add(u'上上海海', u'海海')
ac = builder.build()

for l in ac.findall(u'上海自来水来自海上'):
    print l[0], l[1]

#for l in ac.findall(u'海上海'):
#    print l[0], l[1]
